namespace dPet.Infrastructure.EntityFramework.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class AddModel1 : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "dbo.SaleOrderBillTemplate",
                c => new
                    {
                        Id = c.String(nullable: false, maxLength: 32),
                        HospitalId = c.String(nullable: false, maxLength: 32),
                        BillTitle = c.String(maxLength: 50),
                        ShowAddress = c.Boolean(nullable: false),
                        Address = c.String(maxLength: 255),
                        ShowPhoneNumber = c.Boolean(nullable: false),
                        PhoneNumber = c.String(maxLength: 20),
                        ShowFaxNumber = c.Boolean(nullable: false),
                        FaxNumber = c.String(maxLength: 20),
                        FootText = c.String(maxLength: 50),
                        LastModified = c.DateTime(nullable: false),
                    })
                .PrimaryKey(t => t.Id);
            
        }
        
        public override void Down()
        {
            DropTable("dbo.SaleOrderBillTemplate");
        }
    }
}
